package com.liruo.springframework.core.aop.Introduction;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class IntroductionDoForInterfaceAspect {
  @Before("execution(* com.liruo.springframework.core.aop.Introduction.Introduction*Target.*(..)) && this(usageTracer)")
  public void before(JoinPoint joinPoint,  UsageTracer usageTracer){
      usageTracer.incr();
  }
}
